package base.sys.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import base.core.api.Result;
import base.core.spring.BaseController;
import base.sys.api.enetity.SysMenu;
import base.sys.api.feign.SysMenuFeign;
import base.sys.api.vo.SysMenuTree;
import base.sys.service.SysMenuService;
import io.swagger.annotations.Api;

/**
 * @Description 菜单权限表
 * @Author elegant
 * @CreatDate 2022/1/8 16:27
 */
@RestController
@RequestMapping(SysMenuFeign.API_PREFIX)
@Api(tags = "菜单权限表接口")
public class SysMenuController extends BaseController<SysMenuService, SysMenu> implements SysMenuFeign {

    @Override
    public Result<List<SysMenuTree>> getSysMenuTree() {
        return Result.success(service.getSysMenuTree());
    }
}